package huawei_nowcoder;

import java.util.Scanner;

/**
 * @order  11
 * @decription 数字颠倒
 */
public class NumberReverse {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        StringBuffer stringBuffer=new StringBuffer();
        //n放到字符串中
        int n=scanner.nextInt();
        int[] ints=new int[32];
        int i=0;
        while (n>10){
//            ints[i]=n%10;
            stringBuffer.append(n%10);
            n/=10;
            i++;
        }
//        ints[i]=n;
        stringBuffer.append(n%10);

        System.out.println(stringBuffer.toString());
    }
}
